package com.example.drawview;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.provider.MediaStore.Images.ImageColumns;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

public class UploadImageActivity extends Activity {
ImageView img_logo;
protected static final int CAMERA_REQUEST = 0;
protected static final int GALLERY_PICTURE = 1;
private Intent pictureActionIntent = null;
Bitmap bitmap;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
}

// public void startDialog() {
//    AlertDialog.Builder myAlertDialog = new AlertDialog.Builder(this);
//    myAlertDialog.setTitle("Upload Pictures Option");
//    myAlertDialog.setMessage("How do you want to set your picture?");
//
//    myAlertDialog.setPositiveButton("Gallery",
//            new DialogInterface.OnClickListener() {
//                public void onClick(DialogInterface arg0, int arg1) {
//                    pictureActionIntent = new Intent(
//                            Intent.ACTION_GET_CONTENT, null);
//                    pictureActionIntent.setType("image/*");
//                    pictureActionIntent.putExtra("return-data", true);
//                    startActivityForResult(pictureActionIntent,
//                            GALLERY_PICTURE);
//                }
//            });
//
//    myAlertDialog.setNegativeButton("Camera",
//            new DialogInterface.OnClickListener() {
//                public void onClick(DialogInterface arg0, int arg1) {
//                    pictureActionIntent = new Intent(
//                            android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
//                    startActivityForResult(pictureActionIntent,
//                            CAMERA_REQUEST);
//
//                }
//            });
//    myAlertDialog.show();
//}




}